package GameAgain;

public class Game {
    public static void main(String[] args) {

    }
}

abstract class Role{
    protected String name;
    protected int rank;
    protected int ap;                 //攻击力
    protected int dp;                //防御力
    protected int hp;                //体力
    protected int maxHp;            //最大体力
    protected int money;


    public Role(String name, int rank,int money,int addHp,int addAp,int addDp) {
        this.name = name;
        this.rank = rank;
        this.money = money;

        this.hp = rank*addHp;
        this.ap = rank*addAp;
        this.dp = rank*addDp;
        this.maxHp = this.hp;
    }


    public abstract void introduce();
    public void attack(){

    }

    private void defend(){

    }
}

/*
盗贼
 */
class Robe extends Role{

    public Robe(String name, int rank, int money) {
        super("马淫姐", 1, 12, 10, 3, 1);
    }

    @Override
    public void introduce() {

    }

    public void thief(){

    }



}

/*
猎人
 */
class Hunter extends Role{

    public Hunter(String name, int rank, int money) {
        super(name, rank, money, 12, 2, 2);
    }

    @Override
    public void introduce() {

    }

    public void hunt(){

    }
}

/*
农民
 */
class Farmer extends Role{

    public Farmer(String name, int rank, int money) {
        super(name, rank, money, 8, 1, 1);
    }

    @Override
    public void introduce() {

    }

    public void mine(){

    }
}

/*
士兵
 */
class Solider extends Role{

    public Solider(String name, int rank, int money) {
        super(name, rank, money, 15, 2, 3);
    }

    @Override
    public void introduce() {

    }

    public void rage(){

    }
}

/*
医生
 */
class Doctor extends Role{

    public Doctor(String name, int rank, int money) {
        super(name, rank, money, 8, 1, 2);
    }

    @Override
    public void introduce() {

    }

    public void cure(Role r){
        int cureMax = this.rank*2;



    }
}